"use strict";

/**
 * @ngdoc function
 * @name jgappApp.controller:ChooseuserChooseoneCtrl
 * @description
 * # ChooseuserChooseoneCtrl
 * Controller of the jgappApp
 */
angular
  .module("jgappApp")
  .controller(
    "ChooseuserChooseoneCtrl",
    function($scope, $routeParams, Util, openApi, PagingService) {
      var vm = this;
      this.confirm = function() {
        Util.Toast("请选择人员");
      };
      this.selectpeople = function(user, index) {
        Util.saveLocalInfo("userInfo", user);
        Util.goBack();
      };
      this.initData = function() {
        vm.peoplelist = new PagingService(openApi.getPageListByAccount, {
          limit: 300
        });
      };
      this.initData();
    }
  );
